const Router = require('koa-router')
const { Category } = require('../../models/category')
const router = new Router({
  prefix: '/v1/category',
})
router.get('/list', async (ctx, next) => {
  const list = await Category.getCategoryList()
  ctx.body = {
    code: 200,
    data: list,
  }
})
module.exports = router

